Assessment Platform
With the Assessment Platform you can run your assessment on measurement files without executing the tests. You can either use a single measurement file for the complete assessment. Or you can use for every test case a different measurement file.
You need at least one test case for each measurement file that will serve as a container for the assessment. The measurement file can be a TPTBIN file or any external measurement file. The following file formats for external measurement files are supported: CSV, TPTBIN, XSLX, XLS, MAT, MF4, MDF, DAT, ACSV.
To create an assessment platform, select Execution|Platform Configuration. Click Create a platform configuration and select Assessment Platform.
VM settings
Step size [s]
Specifies the sampling time. A constant time between one simulation step and the subsequent one.
Assessment Platform settings
Mapping
Optionally, a mapping in the Assessment Platform Settings section can be selected to map the signals from the measurement file to the signals defined in TPT, see Declarations - Mappings. You can also import a mapping using the Import Interface Wizard, see Declarations - Import Interface.
System constants can be used in the platform configuration, see Signal Types - Constant.
One measurement file for all test cases
To use the same measurement file for all test cases, enter the path to this file in the Assessment Platform configuration under Shared Measurement file. The file path can be set relative to the TPT project. Select the checkbox Automatically create and export all signals contained in the measurement file if you want all signals to be available in the assessment.
Different measurement files for each test case
There are two ways to assess one measurement file for one test case and another for another test case. You can either use $
variables or add the measurement files to the test case details of each test case.
Attach a measurement file to the test case details:
You can add as many test case attributes of the type File as you like, see Test Case Details - Attach a File. But you can only select one attribute in the Assessment Platform configuration. The files attached to this attribute will be used for the assessment. From the Measurement file attribute list, select a test case attribute name where the measurement file has been attached. In case you have several
When you load TPT files created in TPT 8. TPT 9, TPT 10, TPT 11, or TPT 12, and measurement files have been added, TPT automatically adds the Test Case Details attribute "Measurement File" and places the measurement file links in there. If the project also contains an Assessment Platform, the attribute "Measurement File" will be automatically selected in the Measurement file attribute of the Assessment Platform.
Use $-variables:
The $-variables available are listed when you enter ${
in the Shared measurement file field and press Ctrl+Space. You can use environment variables, see Environment Variables, test case-specific variables, see Test Case-specific Variables, global and project-specific variables created by the user, see Global Variables and Project-specific Variables. The path to the measurement files can be absolute or relative to the TPT project file.
You create a folder named |
Run the assessment
To run the assessment, select Execution|Execution Configuration. Select the Assessment Platform in the Platform section and click Run. The specified measurement files are loaded as test data. The assessment is run on this test data as usual.
Parameters that are defined in the TPT project (for example in the Initial Values view) can be used in the assessment. In case parameters are also available in the measurement file, the values from the Initial Values view are overwritten with the values from the measurement file.